package com.zx.map.service;

import com.zx.map.service.domain.NoticeLogDomain;
import com.zx.map.service.model.NoticeLogModel;

import org.springframework.dao.DataAccessException;

import java.util.List;
import java.util.Map;

/**
 * Created by IntelliJ IDEA. User: Administrator Date: 14-3-1 Time: 上午11:06 To
 * change this template use File | Settings | File Templates.
 */
public interface NoticeLogService {

    /**
     * 根据Model查找列表
     *
     * @param model
     * @return
     * @throws DataAccessException
     */
    public List<NoticeLogModel> getListByModel(NoticeLogModel model) throws DataAccessException;

    /**
     * 新增并返回主键
     *
     * @param model
     * @return
     * @throws DataAccessException
     */
    public String add(NoticeLogModel model) throws DataAccessException;

    /**
     * 更新并返回主键
     *
     * @param model
     * @throws DataAccessException
     */
    public String update(NoticeLogModel model) throws DataAccessException;

    /**
     * 删除
     *
     * @param model
     * @return
     * @throws DataAccessException
     */
    public void delete(NoticeLogModel model) throws DataAccessException;

    /**
     * 分页查询
     *
     * @param pageSize
     * @param pageNum
     * @param model
     * @return
     * @throws DataAccessException
     */
    public Map getPageByModel(int pageSize, int pageNum,
                               NoticeLogDomain domain) throws DataAccessException;


}
